﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace QuanLyBanGiay
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UserControl TheHien = new UserControl();
            if (string.IsNullOrEmpty(Request.QueryString["Id"]))
                TheHien = (UserControl)Page.LoadControl("ucTimkiem.ascx");
            plhnoidung.Controls.Add(TheHien);

        }
        void ShowMessage(string mTextMsg, string mControlFocus)
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder("");
            sb.Append("<script language=\"JavaScript\">");
            if (mTextMsg != "") sb.Append("  alert('" + mTextMsg + "');");
            if (mControlFocus != "") sb.Append("document.forms[0].item('" + mControlFocus + "').focus();");
            sb.Append("</script>");
            if (!IsStartupScriptRegistered("setFocus")) RegisterStartupScript("setFocus", sb.ToString());
        }
    }
}